package com.autumn.config.client.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.http.HttpStatus;

import com.autumn.config.client.annotation.EnableAutumnCloudConfigTraceClient;
import com.autumn.dubbo.spring.boot.annotation.EnableDubboConfiguration;
import com.autumn.swagger.EnableAutumnSwagger;
import com.autumn.web.EnableAutumnApiResponseBody;
import com.autumn.web.security.AbstractAutumnSecurityApplication;

/**
 * 
 * @author 老码农
 *
 *         2018-06-29 15:32:59
 */
@ComponentScan({ "com.autumn.config.client.consumer" }) // bean组件扫描范围
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@EnableAutumnSwagger(basePackages = { "com.autumn.config.client.consumer.controllers" })
@EnableDubboConfiguration
@EnableAutumnApiResponseBody(errorResponseStatus = { HttpStatus.NOT_FOUND }, apiControllerPackages = {
		"com.autumn.config.client.consumer.controllers" })
@EnableAutumnCloudConfigTraceClient
public class ConfigClientConsumerApp extends AbstractAutumnSecurityApplication {

	public static void main(String[] args) {

		SpringApplication.run(ConfigClientConsumerApp.class, args);
		// run(ConfigClientConsumerApp.class, args);
	}
}
